<template>
  <div class="brief">
    <div class="introduce">
      <div class="poster">
        <el-image :src="movies.img" alt="" lazy></el-image>
      </div>
      <div class="suggest">
        <div class="arbit">
          <h2 class="movie-name">{{movies.title}}</h2>
          <span class="score">{{movies.score}}</span>
        </div>
        <p><span class="tl">别名:</span><span class="tx">{{movies.title}}</span></p>
        <p><span class="tl">电视:</span><span class="tx">{{movies.tv}}</span></p>
        <div class="box">
          <p class="status"><span class="tl">状态:</span><span class="tx">{{movies.status}}</span></p>
          <p class="director"><span class="tl">导演:</span><span class="tx">{{movies.director}}</span></p>
          <p class="plot"><span class="tl">剧情:</span><span class="tx">{{movies.desc}}</span></p>
        </div>
        <p class="perfor"><span class="tl">演员:</span><span class="tx">{{movies.to_star}}</span></p>
        <div class="date box">
          <p class="update"><span class="tl">更新:</span><span class="tx">{{movies.show_date}}</span></p>
          <p class="showing"><span class="tl">上映:</span><span class="tx">{{movies.add_date}}</span></p>
        </div>
        <p class="tag"><span class="tl">TAG:</span><span class="tx" v-for="(titem,tindex) in movies.tags" :key="tindex">{{titem}}</span></p>
        <p class="hits"><span class="tl">总点击量:</span><span class="tx">{{movies.hits}}</span></p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BriefCard',
  props: {
    movies: {}
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.brief{
  .introduce{
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #F0F0F0;
    background: #f9f9f9;
    display: flex;
  }
  .poster{
    margin-right: 30px;
    width: 180px;
    min-width: 180px;
    height: 240px;
    .el-image{
      width: 100%;
      height: 100%;
    }
  }
  .suggest{
    flex: 1;
    line-height: 24px;
    .arbit{
      margin: 10px 0 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .movie-name{
      font-size: 25px;
      font-weight: normal;
    }
    .score{
      color: #00C064;
      font-size: 28px;
      font-weight: bold;
    }
    .tl{
      margin-right: 5px;
      color: #929292;
    }
    .tx{
      color: #333;
    }
    .box{
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      &>p{
        margin-right: 20px;
      }
      &>p:last-of-type{
        margin-right: 0;
      }
      .status{
        .tx{
          padding: 2px 5px;
          color: #333;
          background: #fdf9e4;
          border: 1px solid #fcb6a7;
        }
      }
      .director,.plot{
        .tx{
          padding: 3px 5px;
          color: #fff;
          background: #1AB97E;
          border-radius: 2px;
        }
      }
      .plot{
        display: flex;
        align-items: center;
        .tx{
          padding: 0 5px;
          flex: 1;
          cursor: pointer;
          display: -webkit-box;
          overflow: hidden;
          text-overflow: ellipsis;
          -webkit-line-clamp: 1;
          -webkit-box-orient: vertical;
        }
      }
    }
    .perfor{
      display: -webkit-box;
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      .tx{
        color: #929292;
      }
    }
    .tag{
      .tx{
        margin-right: 10px;
        padding: 3px 5px;
        background: #e9e9e9;
        border-radius: 2px;
        cursor: pointer;
        &:hover{
          color: #fff;
          background: #00C064;
        }
      }
    }
  }
}
</style>
